package Mangos::DB::Characters::Corpse;

use strict;

use base qw(Mangos::DB::Characters);

__PACKAGE__->meta->setup
(
    table   => 'corpse',

    columns => 
    [
        guid        => { type => 'integer', not_null => 1 },
        player      => { type => 'integer', default => '0', not_null => 1 },
        position_x  => { type => 'float', default => '0', not_null => 1, precision => 32 },
        position_y  => { type => 'float', default => '0', not_null => 1, precision => 32 },
        position_z  => { type => 'float', default => '0', not_null => 1, precision => 32 },
        orientation => { type => 'float', default => '0', not_null => 1, precision => 32 },
        zone        => { type => 'integer', default => 38, not_null => 1 },
        map         => { type => 'integer', default => '0', not_null => 1 },
        phaseMask   => { type => 'integer', default => 1, not_null => 1 },
        data        => { type => 'scalar', length => 4294967295 },
        time        => { type => 'bigint', default => '0', not_null => 1 },
        corpse_type => { type => 'integer', default => '0', not_null => 1 },
        instance    => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'guid' ],
);

1;

package Mangos::DB::Characters::Corpse::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Characters::Corpse' }

__PACKAGE__->make_manager_methods('corpse');

1;
